package com.fruit.tool.util;

import com.fruit.audit.exception.FruitException;
import com.fruit.audit.exception.FruitExceptionEnum;

/**
 * 
 * @author jinghao.liang
 *
 */
public class CheckUtil {
	public static void isValidXY(double x, double y) {
		if (!(x > 0 && x <= 180)) {
			throw new FruitException(FruitExceptionEnum.XY_ILLEGAL, x + "", y + "");
		}
		if (!(x > 0 && x <= 90)) {
			throw new FruitException(FruitExceptionEnum.XY_ILLEGAL, x + "", y + "");
		}
	}
	
}
